<!DOCTYPE html>
<html>
{% load staticfiles %}
<head> 
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <title></title>
	
    <link rel="shortcut icon" href="{% static 'img/favicon.ico' %}">
    <!-- global stylesheets -->
    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/font-icon-style.css' %}">
    <link rel="stylesheet" href="{% static 'css/style.default.css' %}" id="theme-stylesheet">
    <!-- Core stylesheets -->
    <link rel="stylesheet" href="{% static 'css/card.css' %}">
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
	<style>
		.col-sm-3{
			margin-left: 60px;
		}
	</style>
<body> 

<!--====================================================
                         页头
======================================================-->        
    <header class="header">
        {% if user.is_authenticated %}
        <nav class="navbar navbar-expand-lg ">
            <div class="search-box">
                <button class="dismiss"><i class="icon-close"></i></button>
                <form id="searchForm" action="#" role="search">
                    <input type="search" placeholder="Search Now" class="form-control">
                </form>
            </div>
            <div class="container-fluid ">
                <div class="navbar-holder d-flex align-items-center justify-content-between">
                    <div class="navbar-header">
                        <a href="index.html" class="navbar-brand">
                            <div class="brand-text brand-big hidden-lg-down"></div>
                            <div class="brand-text brand-small"></div>
                        </a>
                        <a id="toggle-btn" href="#" class="menu-btn active">
                            <span></span>
                            <span></span>
                            <span></span>
                        </a>
                    </div>
                </div>
                <ul class="nav-menu list-unstyled d-flex flex-md-row align-items-md-center">
                    <!-- Expand-->
                    <li class="nav-item d-flex align-items-center full_scr_exp"><a class="nav-link" href="#"><img src="{% static 'img/expand.png' %}" onclick="toggleFullScreen(document.body)" class="img-fluid" alt=""></a></li>
                    <!-- Search-->
                    <li class="nav-item d-flex align-items-center"><a id="search" class="nav-link" href="#"><i class="icon-search"></i></a></li>

                    <li class="nav-item dropdown"><a id="profile" class="nav-link logout" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="{% static 'img/avatar-1.jpg' %}" alt="..." class="img-fluid rounded-circle" style="height: 30px; width: 30px;"></a>
                        <ul aria-labelledby="profile" class="dropdown-menu profile">
                            <li>
                                <a rel="nofollow" href="#" class="dropdown-item d-flex">
                                    <div class="msg-profile"> <img src="{% static 'img/avatar-1.jpg' %}" alt="..." class="img-fluid rounded-circle"></div>
                                    <div class="msg-body">
                                        <h5 class="h5">{{username}}</h5><span></span>
                                    </div>
                                </a>
                                <hr>
                            </li>
                            <li>
                                <!--<a rel="nofollow" href="profile.html" class="dropdown-item">-->
                                    <!--<div class="notification">-->
                                        <!--<div class="notification-content"><i class="fa fa-power-off"></i>-->
                                        <a href="Javascript:{document.getElementById('退出2').submit()}"  class="btn btn-primary">退出</a>
                                        <form  id="退出2" method='POST'  action="{% url '退出页面' %}" >
                                            {% csrf_token %}
                                        <input type= "hidden" >

                                        </form>
                                        <!--</div>-->
                                    <!--</div>-->
                                <!--</a>-->
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>

            <div class="login ">
                {% if user.is_authenticated %}
                <!--<a href="Javascript:{document.getElementById('退出').submit()}"  class="btn btn-primary">退出</a>-->
                <form  id="退出" method='POST'  action="{% url '退出页面' %}" >
                    {% csrf_token %}
                <input type= "hidden" >

                </form>
                {% else %}
                <!--<a href="../loginin" class="btn btn-primary">登陆</a>-->
                <a href="../login" class="btn btn-primary">登陆</a>
                {% endif %}
            </div>
        </nav>

        {% else %}
        <nav class="navbar navbar-expand-lg ">
        <div class="search-box">
                <button class="dismiss"><i class="icon-close"></i></button>
                <form id="searchForm" action="#" role="search">
                    <input type="search" placeholder="Search Now" class="form-control">
                </form>
            </div>
        <div class="container-fluid ">
                <div class="navbar-holder d-flex align-items-center justify-content-between">
                    <div class="navbar-header">
                        <a href="index.html" class="navbar-brand">
                            <div class="brand-text brand-big hidden-lg-down"></div>
                            <div class="brand-text brand-small"></div>
                        </a>

                    </div>
                </div>

            </div>

        <div class="login ">

            <a href="../login" class="btn btn-primary">登陆</a>
        </div>
        <div class="zhuce">

            <a href="signup" class="btn btn-primary ">注册</a>


        </div>
        </nav>
        {% endif %}



    </header>

<!--====================================================
                        侧面导航栏
======================================================-->
    <div class="page-content d-flex align-items-stretch">

        <!--***** SIDE NAVBAR *****-->
        <nav class="side-navbar">
            <hr>
            <!-- Sidebar Navidation Menus-->
            <ul class="list-unstyled">
                <li class="active"> <a href=""><i class="icon-home"></i>Home</a></li>
   
                <li> <a href="../tables_android"> <i class="icon-grid"></i>Android</a></li>
				<li> <a href="../tables_java"> <i class="icon-grid"></i>Java </a></li>
				<li> <a href="../tables_php"> <i class="icon-grid"></i>PHP </a></li>
				<li> <a href="../tables_python"> <i class="icon-grid"></i>Python </a></li>
				<li> <a href="../tables_web"> <i class="icon-grid"></i>Web </a></li>
			</ul>      
        </nav>

		
<!--====================================================
                        最高价格
======================================================-->
        <div class="content-inner">

            <!--***** REPORT-1 *****-->     
            <div class="row" id="report1">
                <div class="col-sm-3">
                    <div class="card">
                        <div class="card-block">
                            <div class="text-left report1-cont">
                                <h2 class="font-light m-b-0"><i class="ti-arrow-up text-success"></i>
                                    {{ max_androidprice }}万
                                </h2>
                                <span class="text-muted">Android ({{android_sum}}个岗位)</span>
                            </div>
                            <span class="text-success">比平均工资高{{android_ba}}%</span>
                            <div class="progress">
                                <div class="progress-bar bg-success" role="progressbar" style="width: {{android_ba}}%; height: 6px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                            </div>
                            <p><small>最高工资(年薪)</small></p>
                        </div>
                    </div>
                </div> 
				
                <div class="col-sm-3">
                    <div class="card">
                        <div class="card-block">
                            <div class="text-left report1-cont">
                                <h2 class="font-light m-b-0"><i class="ti-arrow-up text-danger"></i>
                                {{ max_javaprice }}万
                                </h2>
                                <span class="text-muted">Java ({{java_sum}}个岗位)</span>
                            </div>
                            <span class="text-danger">比平均工资高{{java_ba}}%</span>
                            <div class="progress">
                                <div class="progress-bar bg-danger" role="progressbar" style="width: {{java_ba}}%; height: 6px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                            </div>
                            <p><small>最高工资(年薪)</small></p>
                        </div>
                    </div>
                </div>
				
                <div class="col-sm-3">
                    <div class="card">
                        <div class="card-block"> 
                            <div class="text-left report1-cont">
                                <h2 class="font-light m-b-0"><i class="ti-arrow-up text-warning"></i>
                                {{ max_phpprice }}万
                                </h2>
                                <span class="text-muted">PHP ({{php_sum}}个岗位)</span>
                            </div>
                            <span class="text-warning">比平均工资高{{php_ba}}%</span>
                            <div class="progress">
                                <div class="progress-bar bg-warning" role="progressbar" style="width:{{php_ba}}%; height: 6px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                            </div>
                            <p><small>最高工资(年薪)</small></p>
                        </div>
                    </div>
                </div>
				
                <div class="col-sm-3">
                    <div class="card">
                        <div class="card-block"> 
                            <div class="text-left report1-cont">
                                <h2 class="font-light m-b-0"><i class="ti-arrow-up text-info"></i>
                                {{ max_pythonprice }}万
                                </h2>
                                <span class="text-muted">Python ({{python_sum}}个岗位)</span>
                            </div>
                            <span class="text-info">比平均工资高{{python_ba}}%</span>
                            <div class="progress">
                                <div class="progress-bar bg-info" role="progressbar" style="width: {{python_ba}}%; height: 6px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                            </div>
                            <p><small>最高工资(年薪)</small></p>
                        </div>
                    </div>
                </div> 
				
				<div class="col-sm-3">
                    <div class="card">
                        <div class="card-block"> 
                            <div class="text-left report1-cont">
                                <h2 class="font-light m-b-0"><i class="ti-arrow-up text-info"></i>
                                {{ max_webprice }}万
                                </h2>
                                <span class="text-muted">Web ({{web_sum}}个岗位)</span>
                            </div>
                            <span class="text-info">比平均工资高{{web_ba}}%</span>
                            <div class="progress">
                                <div class="progress-bar bg-info" role="progressbar" style="width: {{web_ba}}%; height: 6px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                            </div>
                            <p><small>最高工资(年薪)</small></p>
                        </div>
                    </div>
                </div> 		
            </div>

<!--====================================================
                       平均价格
======================================================-->	   
            <div class="row" id="report3">
                <div class="col-md-8">
                    <div class="card card-c2" style="width: 1200px">
                        <table class="table table-hover">
                          <thead> 
                            <tr>
                              <th>职位</th>
                              <th>平均工资(年薪)</th>
                              <th>高于平均工资的岗位数量<!-- <i class="fa fa-ellipsis-v pull-right" ></i> -->
                              </th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr>
                              <td>Android</td>
                              <td> {{ avg_androidprice }}万</td>
                              <td>
                                  {{android_cou}}个占总数的{{android_couba}}%
                                <div class="progress">
                                   <div class="progress-bar bg-info" role="progressbar" style="width: {{android_couba}}%; height:10px;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>Java</td>
                              <td>{{ avg_javaprice }}万</td>
                              <td>
                                  {{java_cou}}个占总数的{{java_couba}}%
                                <div class="progress">
                                  <div class="progress-bar bg-info" role="progressbar" style="width: {{java_couba}}%; height:10px;" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"></div>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>PHP</td>
                              <td>{{ avg_phpprice }}万</td>
                              <td>
                                  {{php_cou}}个占总数的{{php_couba}}%
                                <div class="progress">
                                   <div class="progress-bar bg-info" role="progressbar" style="width: {{php_couba}}%; height:10px;" aria-valuenow="5" aria-valuemin="0" aria-valuemax="100"></div>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>Python</td>
                              <td>{{ avg_pythonprice }}万</td>
                              <td>
                                  {{python_cou}}个占总数的{{python_couba}}%
                                <div class="progress">
                                  <div class="progress-bar bg-info" role="progressbar" style="width:{{python_couba}}%; height:10px;" aria-valuenow="5" aria-valuemin="0" aria-valuemax="100"></div>
                                </div>
                              </td>
                            </tr><tr>
                              <td>Web</td>
                              <td>{{ avg_webprice }}万</td>
                              <td>
                                  {{web_cou}}个占总数的{{web_couba}}%
                                <div class="progress">
                                   <div class="progress-bar bg-info" role="progressbar" style="width: {{web_couba}}%; height:10px;" aria-valuenow="5" aria-valuemin="0" aria-valuemax="100"></div>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                    </div>
                </div>             
            </div>
        </div>
    </div> 

    <!--Global Javascript -->
    <script src="{% static 'js/jquery.min.js' %}"></script>
    <script src="{% static 'js/popper.min.js' %}"></script>
    <script src="{% static 'js/tether.min.js' %}"></script>
    <script src="{% static 'js/bootstrap.min.js' %}"></script>
    <script src="{% static 'js/jquery.cookie.js' %}"></script>
    <script src="{% static 'js/jquery.validate.min.js' %}"></script>
    <script src="{% static 'js/chart.min.js' %}"></script>
    <script src="{% static 'js/front.js' %}"></script>

    <!--Core Javascript -->
    <script src="{% static 'js/mychart.js' %}"></script>
</body>

</html>